<h3 class="xf_mem_accout_title">已成功的理财标</h3>
#{form @successInvestBid(), id:'successInvestBid'}
<input type="hidden" id="currPage" name="currPage"/>
<input type="hidden" id="pageSize" name="pageSize"/>
<!-- 搜索区域 -->
<ul class="xf_membill_search clr">
	<li>
		<select id="xf_wylc_selectAge" class="xf_membill_selectAge" name="type">   
	       <option value="0"
	        #{if page?.conditions?.type == 0}
                 selected="selected"
                 #{/if}>全部</option>   
	       <option value="1"
	        #{if page?.conditions?.type == 1}
                 selected="selected"
                 #{/if}>标题</option>   
	       <option value="2"
	        #{if page?.conditions?.type == 2}
                 selected="selected"
                 #{/if}>编号</option>   
		</select>
	</li>
	<li class="xf_membill_searchLi">
		<input type="text" name="keyWords" class="xf_membill_shurk_yhm" value="${page?.conditions?.keyWords}">
		<input type="submit" value="搜 索" class="xf_membill_button_yhm">
	</li>
</ul>
#{/form}
<!-- 搜索结果 -->
<div class="xf_membill_search_jg xf_membill_search_table">
	<div class="xf_membill_search_jgleft">
		<ul>
			<li class="xf_membill_search_th">序号</li>
			#{list items:page.page,as:'bid'}
			<li class="xf_membill_search_td">${bid_index}</li>
			#{/list}
		</ul>
	</div>
	<div class="xf_membill_search_jgcenter">
		<table border="0" cellpadding="0" cellspacing="0" width="730" class="xf_membill_acc_viewcpms">
			<tbody>
				<tr>
				  	<th width="74" height="45">借款标编号</th>
				  	<th align="left" width="108">借款标标题</th>
				  	<th>借款人</th>
				  	<th>借款金额</th>
				  	<th>年利率</th>
				  	<th>投标本金</th>
				  	<th>本息合计应收</th>
				  	<th>逾期账单</th>
				  	<th>协议</th>
				</tr>
				#{list items:page.page,as:'bid'}
				<tr>
					<td align="left">${bid?.no}</td>
					<td align="left"><span class="membill_list_limit" limit="24">${bid?.title}</span></td>
					<td align="center">${bid?.name}</td>
					<td align="center">${bid?.bid_amount?.format('###,##0.00')}</td>
					<td align="center">${bid?.apr}%</td>
					<td align="center">${bid?.invest_amount?.format('###,##0.00')}</td>
					<td align="center">
					#{if bid?.receiving_amount != null}
					${bid?.receiving_amount?.format('###,##0.00')}
					#{/if}
					#{else}0#{/else}
					</td>
					<td align="center" >${bid?.overdue_payback_period}</td>
					<td align="center">
						<a class="xf_membill_cza" onclick="showProtocolist('${bid?.sign}');">查看合同</a>
					</td>
				</tr>
				#{/list}
			</tbody>
		</table>
	</div>
	<div class="xf_membill_search_jgright">
		<ul>
			<li class="xf_membill_search_th">操作项</li>
			#{list items:page.page,as:'bid'}
			<li class="xf_membill_search_td">
				<a href="@{front.invest.investAction.invest(bid?.bid_id)}" class="xf_membill_cza" target="_blank">详情</a>
				<span class="xf_memshzdjkb_czspan">|</span>
				<a href="@{toInvestBill(bid?.sign)}"  class="xf_membill_cza" target="_blank">账单</a>
			</li>
			#{/list}
		</ul>
	</div>
	<!-- 清除浮动 -->
	<div class="clear"></div>
</div>
<!-- 分页器 -->
<div class="xf_wylc_page xf_membill_view_page1">
	#{page currPage:page.currPage,pageSize:page.pageSize,totalCount:page.totalCount,theme:2,style:2 /}
</div>
					
<!-- 查看合同 -->
<div class="xf_zqzr_znx_window" id="xf_mem_protocolistwindow">
	#{include "front/account/InvestAccount/repayingInvestBidProtocollist.control"/}
</div>

<script type="text/javascript">
<!--
	function showProtocolist(){
 		$("#xf_mem_protocolistwindow").show();
 	}
	function showProtocolist(sign){
		$("#investSign").val(sign);
		$("#xf_mem_protocolistwindow").show();
	}
	function showPage(currPage, pageSize){
	     $("#currPage").val(currPage);
	     $("#pageSize").val(pageSize);
	     $("#successInvestBid").submit();
	}
//-->
</script>